package com.zxl.yjb.http.customexception;

/**
 * Created by Administrator on 2017/6/11.
 */

public class ApiException extends RuntimeException {

    private String message;
    private int requestCode;

    @Override
    public String getMessage() {
        return message;
    }

    public ApiException(String message, int requestCode){
        this.message=message;
        this.requestCode = requestCode;
    }


    public void setMessage(String message) {
        this.message = message;
    }

    public int getRequestCode() {
        return requestCode;
    }

    public void setRequestCode(int requestCode) {
        this.requestCode = requestCode;
    }
}
